@import (reference) "~ui/styles/variables";

.app-switcher-link {
  width: @as-open-width;
  height: @app-icon-height;
  line-height: @app-line-height;

  &.is-app-switcher-link-disabled {
    opacity: 0.5;

    .app-switcher-link__anchor {
      cursor: default;
    }
  }

  &:hover,
  &.active {
    background-color: @app-links-active-background;

    .app-switcher-link__anchor {
      color: @white;
      text-decoration: none;
    }
  }
}

  .app-switcher-link__anchor {
    display: block;
    height: 100%;
    color: #ebf7fa;

    /**
     * 1. TODO: Override anchor styles. Fix this by removing a tag styles.
     */
    &:focus {
      color: #ebf7fa; /* 1 */
    }
  }

  .app-switcher-link__icon {
    display: inline-block;
    width: @as-closed-width;
    height: @app-icon-height;
    float: left;
    text-align: center;
    font-size: 1.7em;
  }

    /**
     * This imgae is used to display the icon.
     */
    .app-switcher-link__icon-image {
      height: 18px;
      margin-top: 8px;
      filter: invert(100%);
    }

    /**
     * This placeholder text gets shown if there is no specified icon.
     */
    .app-switcher-link__icon-placeholder {
      line-height: @app-icon-height;
      background-position: center;
      background-size: contain;
      background-repeat: no-repeat;
    }

  .app-switcher-link__title {
    width: calc(@as-open-width - @as-closed-width);
    display: inline-block;
    float: right;
    font-size: 0.9em;
    text-align: left;
    padding-left: 3px;
    line-height: @app-icon-height;
    white-space: nowrap;
  }
